<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title><?php echo $title_for_layout?>-读享, 独享,不如读享. PDF, EPUB, MOBI电子书下载</title>
<?php echo $this->Html->css('default.css?v=20110501'); ?>
<?php echo $this->Html->css('btn.css'); ?>
<?php echo $scripts_for_layout?>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.5.2/jquery.min.js"></script>
<script type="text/javascript">

  var _gaq = _gaq || [];
  _gaq.push(['_setAccount', 'UA-19680906-3']);
  _gaq.push(['_trackPageview']);
  _gaq.push(['_trackPageLoadTime']);

  (function() {
    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  })();

</script>
</head>
<body>
<!-- <?php if( isset($loginUser) ){echo $loginUser; } if( isset($userRole) ){echo $userRole; } ?>-->

	<div id="head">
		<div id="top">
		<?php if( !isset($isLogin) || $isLogin=='false'){ ?>
		<a href="/users/sina_login">用新浪微博账号登录</a>
		<?php } else {
			$me = $this->Session->read('me');
			echo $me['screen_name'].',欢迎回来';
		}
		?>
			
	</div>
		<span><b><a href="/">读享</a></b><br/><em>独享, 不如读享</em></span>
		<ul>
			<?php
			if( isset($series ) ){ 
			foreach( $series as $row ):?>
			<li><?php echo $html->link($row$this->Html->linkname"],"serie".'/'.$row["Serie"]['id']) ?></li>
			<?php endforeach;
			}?>
		</ul>
	</div>
	<div id="content">
		<?php echo $content_for_layout?>
	</div>
	<div id="foot">
		<a href="/pages/about">关于读享</a>&nbsp;<a href="http://www.lupinlin.com" target="_blank">关于Lupin</a><br/>
		<a href="http://book.lupinlin.com">读享</a> powered by <a href="http://weibo.com/lupin" target="_blank">LupinLin</a> ©2011-2011
		<script src="http://exp.jiankongbao.com/loadtrace.php?host_id=6696&style=1" type="text/javascript"></script>
	</div>

</body>
</html>